package com.nanfang51g3.ckz.di;

import com.nanfang51g3.ckz.http.RestApi;

import javax.inject.Singleton;

import dagger.Component;
import retrofit2.Retrofit;

/**
 * Created by Administrator on 2016/4/12.
 */
@Singleton
@Component(modules = {ApiModule.class, MainModule.class})
public interface AppComponent {


    /**
     * 获取RestApi 实例
     *
     * 提供依赖给所有引用AppComponent的Component 例如IndexContractComponent使用了@Component(dependencies = AppComponent.class, modules = HomeMainPresenterModule.class)
     */
    RestApi getRestApi();

    /**可有可无*/
    Retrofit getRetrofit();


}
